'use strict';

const baseController =require('./admin/baseController.js');

class HomeController extends baseController {
  async index() {
    let {service,request,query} = this.ctx;
    // let result1=await service.goodsTypeService.list("我好帅");
    let result1=await service.goodsTypeService.doEdit("5baf319abee4cc26e47833de");
    await this.success({data:result1})
  }
  async login() {
    const { ctx } = this;
    ctx.body = { status: 0, msg: '用户名或密码错误' };
  }

  async sendMsg() {
    const { service } = this.ctx;
    let msgResult=await service.sendMsgService.sendMsg("13302254692","8888")
    console.log('短信发送状态');
    console.log(msgResult);
  }

}

module.exports = HomeController;
